-
Notifications
You must be signed in to change notification settings - Fork 395
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for prompt roles and prompt preambles #114
Conversation
How can I try it ? I have installed the last version (v0.0.10) of typechat but in node_modules/typechat, these additions does not exists |
Thanks , I have a question ,the |
How can this be used please? |
@olawalejuwonm, the key change is here: https://github.com/microsoft/TypeChat/pull/114/files#diff-1ece2a0b089b56f4aa22ef64be65b4305b5e890b560a39d9d12140f9a42d40f4R104 Add a
Add a system prompt:
|
How do I pass the user content then? |
This PR adds support for prompt roles, i.e. prompt sections tagged with
"system"
,"user"
, or"assistant"
roles. TypeChat uses the"user"
role for prompts it generates and the"assistant"
role for previous LLM responses (which will be part of the prompt in repair attempts). TypeChat currently doesn't use the"system"
role.This PR also adds support for specifying a prompt preamble when processing requests. This makes it easier to implement chat-like interactions and conversation history.